<template>
	<view class="concat">
		<image src="https://img1.baidu.com/it/u=3013242718,2890808750&fm=253&fmt=auto?w=833&h=500" mode="aspectFit"></image>
		<view class="info">
			<view>联系电话:<text @click="callphone">1399****040(点击拨打)</text></view>
			<view>联系地址:陕西省榆林市榆阳区金沙路志科小区</view>
		</view>
		<map style="width: 100%; height: 300px;" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:1,
				latitude: 38.279553,
				longitude: 109.730695,
				covers: [{
					latitude: 38.279553,
					longitude: 109.730695,
					iconPath: '/static/map.png',
					width:30,
					height:30
				}]
			}
		},
		methods: {
			callphone(){
				uni.makePhoneCall({
					phoneNumber:"13992266040",
					success:()=>{
						console.log("拨打成功")
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.concat{
		image{
			width: 100%;
			// height: ;
		}
		.info{
			padding: 10px 20px;
			font-size: 1.2rem;
		}
		view{
			line-height: 60rpx;
			border-bottom: 1px solid #ff0a16;
			margin-bottom: 10px;
		}
	}
	.map{
		width:100%;
	}

</style>
